import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        name: "Home",
        component: () => import("../views/Home.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司' }
    },
    {
        path: "/join",
        name: "Join",
        component: () => import("../views/Join.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司 - 加入我们' }
    },
    {
        path: "/join/worker",
        name: "Worker",
        component: () => import("../views/join/Worker.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司 - 成为劳务市场伙伴' }
    },
    {
        path: "/join/dispach",
        name: "Dispach",
        component: () => import("../views/join/Dispach.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司 - 成为劳务派遣伙伴' }
    },
    {
        path: "/join/us",
        name: "Us",
        component: () => import("../views/join/Us.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司 - 成为公司一员' }
    },
    {
        path: "/news",
        name: "News",
        component: () => import("../views/News.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司 - 新闻资讯' }
    },
    {
        path: "/news/:id",
        name: "NewsDetail",
        component: () => import("../views/news/Detail.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司 - 新闻资讯' }
    },
    {
        path: "/about",
        name: "About",
        component: () => import("../views/About.vue"),
        meta: { title: '新型手机劳务市场加盟_劳务派遣加盟_小二哥干活_青岛小二哥科技有限公司 - 关于小二哥' }
    },
];

const router = new VueRouter({
    mode: "history",
    base: process.env.BASE_URL,
    routes
});

export default router;
